﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Legazpi.Payroll.DataAccess.DataObjects
{
    public class Sector : EntityBase<int>
    {
        [Required]
        [StringLength(100)]
        public string Name { get; set; }
        
        public int ClientId { get; set; }

        #region References        
        public virtual Client Client { get; set; }
        public virtual ICollection<Detachment> Detachments { get; set; }
        #endregion

        public Sector()
        {
            Detachments = new HashSet<Detachment>();
        }
    }
}
